package com.yugao.fintech.libra.model.vo.menu;

import com.yugao.fintech.libra.common.constants.ValidationCons;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MenuCopyReq {
    /**
     * 菜单id
     */
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Long id;

    /**
     * 复制的菜单后缀
     */
    @Builder.Default
    private String suffix = " Copy";

    /**
     * 场景ID
     */
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Long sceneId;

    /**
     * 删除的菜单等级, 目前只支持一级(-1表示不删除)
     *
     * eg: 删除一级菜单之后, 二级菜单就会变成一级菜单
     */
    private int deleteLevel = -1;
}
